package cn.itcast.day04.demo03;

public class Demo02MethodSum {
    public static void main(String[] args) {
        System.out.println(isSum(100));

    }
    public static int isSum(int a){
       if (a ==1){
           return 1;
       }
       else
           return a+isSum(a-1);
    }
}
